<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('internalReceipt')} > ${i18n.getMessage('internalReceipt.addNew')}">
	
</@showTitle>

<div id="error" style="display:none"></div>

<form action="receipt/addInternalReceipt.sgt" validator="receipt/validateInternalReceipt.sgt" onsubmit="submitFormValidation(this); return false;" onreset="$('error').hide()">
	<table id="dataTable" class="w750" cellspacing="5" cellpadding="0">
		<tr>
			<td class="name w100"><@required/>${i18n.getMessage('name')}:</td>
			<td><input type="text" name="name" class="w200"/></td>
		</tr>
		<tr>
			<td class="name w100"><@required/>${i18n.getMessage('date')}:</td>
			<td><input type="text" name="date" value="${now?date}" class="w200"/></td>
		</tr>
		<tr>
			<td class="name w100"><@required/>${i18n.getMessage('cashier')}:</td>
			<td>
				<select name="cashierId" class="w200">
					<option></option>
					<#list cashiers as cashier>	
						<option value="${cashier.id}" <#if cashier == action.USER()>selected</#if>>${(cashier.fullName)!}</option>
					</#list>
				</select>
			</td>
		</tr>
		<tr>
			<td class="name"><@required/>Amount:</td>
			<td class="w115"><input type="text" name="fee" class="right w080" /> ${i18n.getMessage('currency.vnd')}</td>
		</tr>
		<tr>
			<td class="name w100" style="vertical-align:top">${i18n.getMessage('comment')}</td>
			<td colspan="3"><textarea name="comment" class="w300 h075"></textarea></td>
		</tr>
		<tr>
			<td class="name w100"></td>
			<td>
				<input type="submit" value="${i18n.getMessage('add')}" class="button_style"/> 
				<input type="reset" value="${i18n.getMessage('reset')}" class="button_style"/>
			</td>
		</tr>
	</table>
</form>